package com.orphan.supplier.service.impl;

import com.orphan.supplier.mapper.BackMapper;
import com.orphan.supplier.po.Backgoods;
import com.orphan.supplier.mapper.BackgoodsMapper;
import com.orphan.supplier.service.IBackgoodsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zjm
 * @since 2021-07-14
 */
@Service
public class BackgoodsServiceImpl extends ServiceImpl<BackgoodsMapper, Backgoods> implements IBackgoodsService {
    @Resource
    BackgoodsMapper backgoodsMapper;
    @Override
    public void addGoods(Backgoods backgoods) {
        backgoodsMapper.insert(backgoods);
    }

    @Override
    public void addgoods(Backgoods backgoods) {
        backgoodsMapper.addgoods(backgoods);
    }
}
